package com.example.gulimall.product.app.controller;

import com.example.gulimall.product.service.SkuSaleAttrValueService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("product/skusaleattrvalue")
public class skuSaleAttrValueController {
    @Autowired
    SkuSaleAttrValueService skuSaleAttrValueService;
    @GetMapping("/stringlist/{skuId}")
    public List<String> getSkuSaleAttrValue(@PathVariable("skuId") Long skuId){
        List<String> data=skuSaleAttrValueService.getSkuSaleAttrValue(skuId);
        return data;
    }
}
